import axios from '@/libs/request'

export const insert = (data) => {
  return axios.request({
    url: '/api/as/cme2/yqsendinfo/saveZwxxhywInfo',
    data: data,
    type: 'post'
  })
}
export const findPageList = (data) => {
  return axios.request({
    url: '/api/as/cme2/yqsendinfo/zwxxhywInfoList',
    data: data,
    type: 'get'
  })
}
export const getById = (data) => {
  return axios.request({
    url: '/api/as/cme2/yqsendinfo/getZwxxhywInfo',
    data: data,
    type: 'get'
  })
}
export const deleteRequest = (data) => {
  return axios.request({
    url: '/api/as/cme2/yqsendinfo/deleteZwxxhywInfo',
    data: data,
    type: 'post'
  })
}
export const getDictionary = (type) => {
  return axios.request({
    url: `/api/as/cme2/yqsendinfo/codeList?type=${type}`,
    type: 'get'
  })
}
export const jwCodeList = (data) => {
  return axios.request({
    url: '/api/as/cme2/yqsendinfo/jwCodeList',
    data: data,
    type: 'get'
  })
}
